package org.gwu.seuss.service;

import java.util.List;

import org.gwu.seuss.communication.exception.UserException;
import org.gwu.seuss.communication.request.ClientRequest;
import org.gwu.seuss.domain.File;

public interface FileService {

	public File selectFile(int ownerId, String filename);

	public int insertFile(File file);

	public File selectFileById(int fileId);

	public List<File> selectAllFileByOwner(int ownerId);

	public int deleteFile(String owner, String filename) throws Exception;

	public byte[] downloadFile(ClientRequest req) throws Exception;

	public int uploadFile(ClientRequest req) throws Exception;

	public int shareFile(ClientRequest req) throws UserException;
}